#ifndef REXPLORER_H
#define REXPLORER_H

#include <QtGui/QMainWindow>
#include <QDir>
#include <QModelIndex>
#include <QMessageBox>
#include <QListView>
#include <QSettings>
#include <QFileSystemModel>
#include <QMenu>
#include <QDesktopServices>
#include <QUrl>
#include "qcustomlistview.h"

namespace Ui
{
    class rexplorerClass;
}

class rexplorer : public QMainWindow
{
    Q_OBJECT

public:
    rexplorer(QWidget *parent = 0);
    ~rexplorer();

private:
    Ui::rexplorerClass *ui;
    QSettings *settings;
    QFileSystemModel *fsMdl;
    QCustomListView *activeListView;
    //QList<QModelIndex> *miHistory1;
    //QList<QModelIndex> *miHistory2;

    void reindexFileViewByLink(QLabel *qlp, QString link);
    void viewDirTree(bool view);
    void viewDualPane(bool view);

private slots:
    void setActiveListView(QListView *active);

    void on_lblPane2_linkActivated(QString link);
    void on_lblPane1_linkActivated(QString link);

    void on_actionDual_File_Panes_triggered();
    void on_actionDirectory_Tree_triggered();
    void on_actionBack_triggered();
    void on_actionSystem_triggered();
    void on_actionDrives_triggered();

    void on_actionSet_View_1_Active_activated();
    void on_actionSet_View_2_Active_activated();
    void on_treeDir_activated(QModelIndex index);
};

#endif // REXPLORER_H
